package com.droowa.domain;

import java.io.Serializable;
import java.util.Date;

public class RefundManagement implements Serializable{
	private int orderNumber;
	private String orderer;
	private String productName;

	private Date refundDate;
	private int refundMoney;
	private String refundWay;
	private String refundProcess;
	public RefundManagement() {
		super();
	}
	public RefundManagement(int orderNumber, String orderer,
			String productName, Date refundDate, int refundMoney,
			String refundWay, String refundProcess) {
		super();
		this.orderNumber = orderNumber;
		this.orderer = orderer;
		this.productName = productName;
		this.refundDate = refundDate;
		this.refundMoney = refundMoney;
		this.refundWay = refundWay;
		this.refundProcess = refundProcess;
	}
	public int getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getOrderer() {
		return orderer;
	}
	public void setOrderer(String orderer) {
		this.orderer = orderer;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public Date getRefundDate() {
		return refundDate;
	}
	public void setRefundDate(Date refundDate) {
		this.refundDate = refundDate;
	}
	public int getRefundMoney() {
		return refundMoney;
	}
	public void setRefundMoney(int refundMoney) {
		this.refundMoney = refundMoney;
	}
	public String getRefundWay() {
		return refundWay;
	}
	public void setRefundWay(String refundWay) {
		this.refundWay = refundWay;
	}
	public String getRefundProcess() {
		return refundProcess;
	}
	public void setRefundProcess(String refundProcess) {
		this.refundProcess = refundProcess;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + orderNumber;
		result = prime * result + ((orderer == null) ? 0 : orderer.hashCode());
		result = prime * result
				+ ((productName == null) ? 0 : productName.hashCode());
		result = prime * result
				+ ((refundDate == null) ? 0 : refundDate.hashCode());
		result = prime * result + refundMoney;
		result = prime * result
				+ ((refundProcess == null) ? 0 : refundProcess.hashCode());
		result = prime * result
				+ ((refundWay == null) ? 0 : refundWay.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RefundManagement other = (RefundManagement) obj;
		if (orderNumber != other.orderNumber)
			return false;
		if (orderer == null) {
			if (other.orderer != null)
				return false;
		} else if (!orderer.equals(other.orderer))
			return false;
		if (productName == null) {
			if (other.productName != null)
				return false;
		} else if (!productName.equals(other.productName))
			return false;
		if (refundDate == null) {
			if (other.refundDate != null)
				return false;
		} else if (!refundDate.equals(other.refundDate))
			return false;
		if (refundMoney != other.refundMoney)
			return false;
		if (refundProcess == null) {
			if (other.refundProcess != null)
				return false;
		} else if (!refundProcess.equals(other.refundProcess))
			return false;
		if (refundWay == null) {
			if (other.refundWay != null)
				return false;
		} else if (!refundWay.equals(other.refundWay))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "RefundManagement [orderNumber=" + orderNumber + ", orderer="
				+ orderer + ", productName=" + productName + ", refundDate="
				+ refundDate + ", refundMoney=" + refundMoney + ", refundWay="
				+ refundWay + ", refundProcess=" + refundProcess + "]";
	}
	
	

}
